package cn.itcast.Thread;

public class ThreadDemo {
    public static void main(String[] args) {
        //创建线程对象
        MyThread mt = new MyThread();
        //start方法启动线程
        mt.start();
        System.out.println("-------------");
        //主函数的线程
        System.out.println(Thread.currentThread().getName());
        for (int i = 0; i <10 ; i++) {
            System.out.print(i);
        }

    }
}
